#ifndef LIST_H_
#define LIST_H_

#include<stdbool.h>
#define TSIZE 45

struct film{
	char title[TSIZE];
	int rating;
};

typedef struct film Item;
typedef struct node{
	Item item;
	struct node *next;
}Node;
typedef Node *List;

void InitList(List *plist);
bool ListEmpty(const List *plist);
bool ListIsFull(const List *plist);
unsigned int ListItemCount(const List *plist);
bool AddItem(Item item, List *plist);
void Trave(const List *plist, void(*pfun)(Item item));
void FreeList(List *plist);


#endif
